import UserLoginException.*;

public class Login {
    private String userName = "admin";
    private String userPasswd ="123456";

    public void LoginInfo(String userName,String userPasswd){
        if(!(this.userName).equals(userName)){
            throw new UserNameException("管理员用户输入错误!");
        }
        if(!this.userPasswd.equals(userPasswd)){
            throw new UserPasswdException("管理员密码输入错误!");
        }
        System.out.println("成功登录图书管理系统!");
    }
}
